package com.demo.autotest.database.mapper;

import com.demo.autotest.database.domain.User;
import com.demo.autotest.database.domain.UserProject;
import com.demo.autotest.dto.UserDTO;
import com.demo.autotest.request.QueryRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper   // 定义Dao层
public interface UserMapper {

     void insertUser(User user);

     void deleteUser(String id);

     void resetPwd(String id);

     UserDTO getUserById(String id);

     UserDTO getUserByAccount(String account);

     void updateUserProject(UserProject userProject);

     List<UserDTO> getUserList(QueryRequest request);

     List<User> getUserAllList();

}
